-
Home
-
AdminEase
-
1.0.1 (latest)
-
Code
-
Classes
- AllowSvgUpload
Total Complexity |
53 |
Dependencies |
5 |
Dependents |
1 |
Total lines |
469 |
Lines of code |
220 |
Logical lines of code |
103 |
Comment lines |
167 |
Methods |
21 |
Properties |
0 |
Methods 21
Method |
Rating |
Maintainability
|
Complexity
|
Lines of code
|
sanitize_svg_upload() |
S |
56 |
5 |
19 |
process_svg_sanitization() |
S |
59 |
5 |
13 |
is_svg_upload() |
S |
63 |
4 |
10 |
is_svg_file() |
S |
70 |
4 |
6 |
is_valid_svg_structure() |
S |
58 |
3 |
15 |
validate_svg_structure() |
S |
61 |
3 |
12 |
validate_svg_upload() |
S |
65 |
3 |
10 |
extract_file_extension() |
S |
65 |
3 |
8 |
should_enqueue_scripts() |
S |
72 |
3 |
5 |
get_svg_admin_script() |
S |
60 |
1 |
30 |
show_svg_in_media_library() |
S |
59 |
2 |
14 |
create_image_size() |
S |
62 |
2 |
12 |
__construct() |
S |
61 |
2 |
11 |
add_svg_to_upload_mimes() |
S |
71 |
2 |
6 |
fix_svg_mime_type() |
S |
66 |
2 |
8 |
admin_enqueue_scripts() |
S |
71 |
2 |
6 |
validate_file_size() |
S |
65 |
2 |
9 |
create_sanitizer() |
S |
64 |
2 |
10 |
read_svg_content() |
S |
79 |
1 |
3 |
create_file_error() |
S |
76 |
1 |
4 |
handle_sanitization_error() |
S |
67 |
1 |
9 |